CXX 				 = g++
INCLUDES     = -I. -I./include
LIBS				 = ./lib/libsystemc.a
#FLAGS				 =

SOURCES			 = $(shell ls *.cc)
OBJECTS			 = $(SOURCES:.cc=.o)

EXEC   			 = sim

all: $(OBJECTS)
	$(CXX) -o $(EXEC) $(INCLUDES) *.o $(LIBS)

%.o: %.cc
	$(CXX) $(INCLUDES) -c $<

clean:
	rm -f *.o
	rm -f $(EXEC)
	rm -f *.vcd
